package com.wangjiacai.hqlQuery.role.service;

import com.wangjiacai.hqlQuery.role.entity.Role;
import com.wangjiacai.hqlQuery.service.BaseService;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface RoleService extends BaseService {

    long getRoleListNum(Role role);

    List<Role> getRoleList(Role role, Pageable pageable);

    List<Role> getRoleList(Role role);

    List<String> findRoleIdListByUserId(String userId);

    List<Role> getAllRoleList();

    void assignRoleFunctionByBhs(String bhs, String roleId);

    void assignUserRoleByRoleIds(String roleIds,String userId);

    Role addRole(Role role);

    void deleteRole(String id);

    List<Map> getRoleTreeMap(Role role);

}
